<?php

		//header('Content-type: application/json');
 // localhost
 		$con = mysqli_connect('localhost','root','','csp_karaoke');
		$con->set_charset('utf8');
		if (mysqli_connect_errno($con))
		  {
		 	 echo "Lỗi kết nối MySQL: " . mysqli_connect_error();
		  }
		else
		{
			 //echo "Kết nối MySQL thành công./. ";
		}

/*
 // tenten.vn
 		$con = mysqli_connect('mysql-server01','tongbaoloc1','vtb6dLA7dc1','tongbaoloc1');
		$con->set_charset('utf8');
		if (mysqli_connect_errno($con))
		  {
		 	 echo "Lỗi kết nối MySQL: " . mysqli_connect_error();
		  }
		else
		{
			// echo "oki: ";
		}
*/
?>
